﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Entity.Entity.JJFlow;

namespace Jinjia.Approve.IRepository.JJFlow
{
    public interface IFlowInstanceFormRepository
    {
        Task Save(List<jj_flow_instance_form> data);

        Task<string> GetValueByKey(int instance_id, string form_key);
        
        Task<jj_flow_instance_form> GetModelByKey(int instance_id, string form_key);

        /// <summary>
        /// 根据审批流实例Id获取实例表单集合
        /// </summary>
        /// <param name="instanceId">审批流实例</param>
        /// <returns>实例表单集合</returns>
        Task<List<jj_flow_instance_form>> GetListByInstanceId(int instanceId);
    }
}